package com.example.reebonz_search;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.RadioButton;

public class SearchActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.search_layout);
        
        final RadioButton maleRadio = (RadioButton)findViewById(R.id.Male);
        final RadioButton femaleRadio = (RadioButton)findViewById(R.id.Female);
        maleRadio.setOnClickListener(new View.OnClickListener() {
	    		public void onClick (View v) {
	    			femaleRadio.setChecked(false);
	    		}
	    	}
	    );
        femaleRadio.setOnClickListener(new View.OnClickListener() {
    		public void onClick (View v) {
    			maleRadio.setChecked(false);
    		}
    	}
    );
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
